package com.itheima.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-26 15:52
 **/
public class SpringContextTest {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-event.xml");
        context.publishEvent(new MessageEvent("hello!"));
    }
}
